﻿@model PinLayoutMVC.Models.SurveyModel

@{
    ViewBag.Title = "Survey Details";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<div class="headerTitle">
    <div class="pageTitle" > Survey Details</div>

    <div class="eigenlink">
       @Html.ActionLink("Add question", "CreateNewQuestion", "Admin", new { Model.ID }, null)
       @Html.ActionLink("Publish", "PublishSurvey", "Admin", new { Model.ID }, null)
    </div>
</div>

<!DOCTYPE html>

<html>
<head>
    <title>SurveyOverview</title>
</head>
<body>    
<div class="threePixelLine">
      <img src="../../images/lijnTabel.jpg" />
    </div>
    <div class="TabelSizzle">
        <table>
            <tr>
            @*<td><div id="eigenTableHeader1"> ID  </div></td>*@
            <td><div id="eigenTableHeader2"> Number&nbsp&nbsp&nbsp&nbsp  </div></td>
            <td><div id="eigenTableHeader3"> Question </div></td>
            <td><div id="eigenTableHeader4"> Question Description </div></td>
            <td><div id="eigenTableHeader5"> Type of question </div></td>
            <td><div id="eigenTableHeader6"> Allow feedback </div></td>
            <td><div id="eigenTableHeader7"> Feedback text </div></td>
            <td><div id="eigenTableHeader8"> Validated&nbsp&nbsp&nbsp&nbsp</div></td>
            <td><div id="eigenTableHeader9"> Validation Message</div></td>
            </tr>          

            @foreach (var question in Model.Questions)
            {
                <tr>
            @*        <td>
                        @question.ID              
                    </td>*@
                    <td>
                        @question.Number
                    </td>
                    <td>
                        @question.Question
                    </td>
                    <td>
                        @question.Description
                    </td>
                    <td>
                        @question.Type
                    </td>
                    <td>
                        @question.AllowFeedback
                    </td>
                    <td>
                        @question.FeedbackText
                    </td>
                    <td>
                        @question.Validated
                    </td>
                    <td>
                        @question.ValidationMessage
                    </td>
                    <td>
                        @Html.ActionLink("Edit", "Question", "Admin", new { question.ID }, null)
                    </td>
                </tr>
     
                }
                

        </table>
        </div>

</body>
</html>
